import { legacy_createStore, compose, applyMiddleware, combineReducers } from 'redux'
import thunk from 'redux-thunk'
import logger from 'redux-logger'
import reducer from './reducer'

const store = legacy_createStore(
    combineReducers({
        reducer
    }),
    compose(
        applyMiddleware(thunk, logger)
    )
);
export default store